#ifndef HUBLNK_H
#define HUBLNK_H

#include <QPushButton>

namespace Ui {
class HubLNK;
}

class HubLNK : public QPushButton
{
    Q_OBJECT

public:
    explicit HubLNK(QWidget *parent = nullptr);
    ~HubLNK();

    void set_size(const QSize &size);

private:
    Ui::HubLNK *ui;

    bool this_is_clicked;
    int old_x;
    int old_y;

    void mousePressEvent(QMouseEvent *);
    void mouseReleaseEvent(QMouseEvent *);
    void mouseMoveEvent(QMouseEvent *);
    void enterEvent(QEnterEvent *);
    void leaveEvent(QEvent *);

signals:
    void left_clicked();
    void right_clicked();
};

#endif // HUBLNK_H
